home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / bipl.zip / DOCS.ZIP / ICONMAKE.DOC < prev    next >
Text File  |  1992-09-20  |  946b  |  45 lines

  1.  
  2. A generic makefile skeleton for Icon programs by Bob Alexander:
  3.  
  4. -------------------------------------------------------------------------
  5. #
  6. #  Makefile for Icon Programming Language program:
  7. #
  8. PROGRAM=|>Program Name<|
  9.  
  10. #
  11. #  To customize this file, usually only the definitions of macros
  12. #  PROGRAM and FILES require modification.
  13. #
  14.  
  15. #
  16. #  Specification of separate files that make up the program.
  17. #
  18. #  Note that the .u1 suffix is used here; the corresponding .icn files
  19. #  are automatically identified by the implicit rule.
  20. #
  21. FILES=|>List of component files, space separated, using .u1 suffix<|
  22.  
  23. #
  24. #  Option flag definitions, etc.
  25. #
  26. ICFLAGS=-s
  27. IFLAGS=-s
  28. ICONT=icont
  29.  
  30. #
  31. #  Implicit rule for making ucode files.
  32. #
  33. .SUFFIXES: .u1 .icn
  34. .icn.u1:
  35.     $(ICONT) -c $(ICFLAGS) $*
  36.  
  37. #
  38. #  Explicit rules for making an Icon program.
  39. #
  40. all:    $(PROGRAM)
  41.  
  42. $(PROGRAM): $(FILES)
  43.     $(ICONT) -o $(PROGRAM) $(IFLAGS) $(FILES)
  44.  
  45.